from settings import *
import pygame

class Board(object):
    def __init__(self, screen):
        self.board = []
        self.screen = screen

        for i in range(8):
            lst = []
            for i in range(8):
                lst.append(0)
            self.board.append(lst)

        self.board[3][3] = 1
        self.board[3][4] = 2
        self.board[4][3] = 2
        self.board[4][4] = 1

    def draw(self):
        print(self.board)
        r = GRID_WIDTH // 2 - 5
        for i in range(8):
            for j in range(8):
                x = PADDING + j * GRID_WIDTH + GRID_WIDTH // 2
                y = PADDING + i * GRID_HEIGHT + GRID_HEIGHT // 2

                if self.board[i][j] == 1:
                    pygame.draw.circle(self.screen, (0, 0, 0),
                        (x, y), r, 0)
                elif self.board[i][j] == 2:
                    pygame.draw.circle(self.screen, (255, 255, 255),
                        (x, y), r, 0)

